package com.beg.cant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.beg.cant.dto.PageRequest;
import com.beg.cant.dto.PageResponse;
import com.beg.cant.dto.WithdrawDTO;
import com.beg.cant.dto.WithdrawQueryRequest;
import com.beg.cant.entity.Withdraw;
import com.beg.cant.vo.WithdrawVO;
import com.beg.cant.vo.WithdrawStatisticsVO;

import java.io.UnsupportedEncodingException;
import java.util.List;

public interface WithdrawService  extends IService<Withdraw> {
    /**
     * 获取用户提现记录
     * */
    List<Withdraw> getUserById(Long id);
    
    /**
     * 分页查询提现记录
     * */
    PageResponse<WithdrawVO> getWithdrawList(PageRequest request);
    
    /**
     * 新建提现记录
     *
     * @param withdraw
     */
    void setWithdraw(WithdrawDTO withdraw);

    /**
     * 更新提现记录
     *
     * @param code
     */
    void updateWithdraw(String code);

    /**
     * 批量完成提现
     * */
    void finishWithdraw(String code) throws UnsupportedEncodingException;

    /**
     * 查询提现具体详情
     * */
    WithdrawVO selectWithdraw(String code);

    /**
     * 修改提现详情
     * */
    void upWithdraw(Long id,String code);

    /**
     * 获取提现统计信息
     * @return 提现统计信息
     */
    WithdrawStatisticsVO getWithdrawStatistics();
}
